/**
 * VYPe11 Project
 * VYPe11 language compiler.
 * Authors: Jozef Lang (xlangj01), 
 * 			Zoltan Zemko (xzemko01)
 * 2011
 */

package cz.vutbr.fit.VYPe.team18.VYPe11;

/**
 * Application entry point class.
 */
public class Main {

    /**
	 * Application entry point.
     * @param args the command line arguments
     */
    public static void main(String[] args) {
    	String input, output;
    	int result;
		
		// Parse command line arguments
		if (args.length < 1 || args[0].isEmpty()) {
			//Utils.printError("no input files");
			System.exit(Utils.INTERNAL_ERROR);
		}
		input = args[0];
		output = "out.asm";
		if (args.length > 1) {
			output = args[1];
		}
		
		// Compilation
		result = Utils.compile(input, output);
		System.exit(result);
		
    }
}
